/**
 * $DESCRIPTION
 *
 * @author 29284
 * @since 2024/12/10 20:17
 */
public class Main {
    public static void main(String[] args) {
       WebPageStatistics webPageStatistics = new WebPageStatistics();
       //模拟记录网页访问
        webPageStatistics.recordVisit("https://www.baidu.com");
        webPageStatistics.recordVisit("https://www.kuake.com");
        webPageStatistics.recordVisit("https://www.baidu.com");
        webPageStatistics.recordVisit("https://www.doubao.com");
        //显示访问量排行榜
        webPageStatistics.recordRank();
        //统计总访问量
        System.out.println("TotalVisitCount:"+webPageStatistics.totalVisit());
        //计算平均访问量
        System.out.println("AverageVisitCount:"+webPageStatistics.aveCount());
        //显示页面最后访问时间
        webPageStatistics.lastVisitTime();
        //清空访问统计
        webPageStatistics.clearStatistics();
    }
}